package cn.wgx.modules.base.entity.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface BaseUtilMapper {

    Integer plusOne(
            @Param(value = "id") int id,
            @Param(value = "tableName") String tableName,
            @Param(value = "fieldName") String fieldName,
            @Param(value = "idName") String idName);

    Integer insert(String statement);

    Integer delete(String statement);

    Integer update(String statement);

    List<Map<String, Object>> selectList(String statement);

    String selectOne(String statement);
}
